import request from '@/util/request'

export function getSensorWith(data) {
  return request({
    url: '/iot/device/sensor/getWith',
    method: 'post',
    data
  })
}

export function listSensorWith(data) {
  return request({
    url: '/iot/device/sensor/listWith',
    method: 'post',
    data
  })
}

export function listSensorIcon(data) {
  return request({
    url: '/iot/device/sensor/icon/list',
    method: 'post',
    data
  })
}

export function deleteSensorIcon(data) {
  return request({
    url: '/iot/device/sensor/icon/delete',
    method: 'post',
    data
  })
}

export function batchSensorWith(data) {
  return request({
    url: '/iot/device/sensor/batchWith',
    method: 'post',
    data
  })
}

export function listSensor(data) {
  return request({
    url: '/iot/device/sensor/list',
    method: 'post',
    data
  })
}

export function batchSensor(data) {
  return request({
    url: '/iot/device/sensor/batch',
    method: 'post',
    data
  })
}

export function deleteSensor(data) {
  return request({
    url: '/iot/device/sensor/delete',
    method: 'post',
    data
  })
}

export function insertSensor(data) {
  return request({
    url: '/iot/device/sensor/insert',
    method: 'post',
    data
  })
}

export function copySensor(data) {
  return request({
    url: '/iot/device/sensor/copy',
    method: 'post',
    data
  })
}

export function updateSensor(data) {
  return request({
    url: '/iot/device/sensor/update',
    method: 'post',
    data
  })
}

